/**
 * Canvas 渲染插件 - 使用 Canvas 绘制排班表
 * 包含固定表头、固定左列、虚拟滚动
 */

import type { Plugin } from '../../types'
import { CanvasRenderer } from './CanvasRenderer'

export const CanvasRendererPlugin: Plugin = {
  id: 'canvas-renderer',
  name: 'Canvas Renderer Plugin',
  version: '1.0.0',
  description: 'Canvas渲染排班表，支持虚拟滚动',

  component: CanvasRenderer,

  onInstall(_context) {
    console.log('[CanvasRendererPlugin] Installed')
  },

  onEnable(_context) {
    console.log('[CanvasRendererPlugin] Enabled')
  },

  onDisable(_context) {
    console.log('[CanvasRendererPlugin] Disabled')
  },

  onUninstall(_context) {
    console.log('[CanvasRendererPlugin] Uninstalled')
  },
}
